package rt.crashmere.sdk;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import rt.crashmere.sdk.controller.ApiClient;

/**
 * @author Lwh
 * @time 2023/01/22 21:52
 */
@Data
@Configuration
@ComponentScan
@ConfigurationProperties("rt.api.client")
public class ApiClientConfig {

    private String accessKey;

    private String secretKey;

    private String host;

    @Bean
    public ApiClient apiClient() {
        return new ApiClient(accessKey,secretKey, host);
    }

}
